<%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="cong.jdbc.JdbcConn"%>
<%@page import="com.dy.nygl.pojo.EnergyYear"%>
<%@page import="com.dy.nygl.pojo.Energy"%>
<%@page import="com.dy.nygl.pojo.FromTo" %>
<%
	List<Energy> list = new JdbcConn().getList();
	String cate1 = list.get(0).getName();
	String cate2 = list.get(1).getName();
	String cate3 = list.get(2).getName();
	String cate4 = list.get(3).getName();
	String cate5 = list.get(4).getName();
	String cate6 = list.get(5).getName();

	int data1 = Integer.parseInt(list.get(0).getActual());
	int data2 = Integer.parseInt(list.get(1).getActual());
	int data3 = Integer.parseInt(list.get(2).getActual());
	int data4 = Integer.parseInt(list.get(3).getActual());
	int data5 = Integer.parseInt(list.get(4).getActual());
	int data6 = Integer.parseInt(list.get(5).getActual());
	
	FromTo date=new JdbcConn().getfrom();
	String from=date.getFromgo();
	String to=date.getTogo();
%>
